package org.gushi.datastruct.a05;

import org.gushi.datastruct.a05.list.ArrayList;
import org.gushi.datastruct.a05.list.List;

public abstract class AbstractQueue<E> implements Queue<E>{

    protected List<E> list = new ArrayList<>();

    @Override
    public int size() {
        return list.size();
    }

    @Override
    public boolean isEmpty() {
        return list.isEmpty();
    }

    @Override
    public void clear() {
        list.clear();
    }
}
